export function GetNewMonthPayMin() {
	var list = new Array();
	for (var i = 1.0; i <= 5.0; i += 0.5) {
			var iStr = i.toString();
			if (iStr.indexOf(".0") >= 0) {
					iStr = iStr.substr(0, iStr.indexOf(".0"));

			}
			if (iStr == "1.5")
					continue;
			if (iStr == "1") {
					list.push({
							"id": "1",
							"name": "2k以下"
					});
					continue;
			}
			list.push({
					"id": iStr,
					"name": iStr + "k"
			});
	}
	for (i = 6; i <= 45; i++) {
			list.push({
					"id": i.toString(),
					"name": i + "k"
			});
	}

	list.push({
			"id": "51",
			"name": "50k以上"
	});
	return list;
}
/*module.exports.GetNewMonthPayMin = GetNewMonthPayMin;*/

export function GetNewMonthPayMax(minStr) {
	var list = new Array();

	if (minStr == "1") {
			list.push({
					"id": "1",
					"name": "2k以下"
			});
			return list;
	}
	if (minStr == "51") {
			list.push({
					"id": "51",
					"name": "50k以上"
			});
			return list;
	}

	var endPay = 100;

	var min = parseFloat(minStr);
	if (min < 5) {
			if (min == 2 || min == 2.5) {
					endPay = 5;
			}
			if (min == 3) {
					endPay = 6;
			}
			if (min == 3.5) {
					endPay = 7;
			}
			if (min == 4) {
					endPay = 8;
			}
			if (min == 4.5) {
					endPay = 9;
			}
			for (var i = min + 0.5; i <= endPay; i += 0.5) {
					list.push({
							"id": i.toString(),
							"name": i + "k"
					});
			}
			return list;
	} else if (min < 50) {
			if (min >= 5 && min <= 10) {
					endPay = min + 5;
			}
			if (min >= 11 && min <= 15) {
					endPay = min * 2;
			}
			if (min >= 16 && min <= 17) {
					endPay = 30;
			}
			if (min >= 18 && min <= 19) {
					endPay = 35;
			}
			if (min >= 20 && min <= 22) {
					endPay = 40;
			}
			if (min >= 23 && min <= 24) {
					endPay = 45;
			}
			if (min >= 25) {
					endPay = 50;
			}
			for (var i = min + 1; i <= endPay; i++) {
					list.push({
							"id": i.toString(),
							"name": i + "k"
					});
			}
			return list;
	}

	list.push({
			"id": minStr,
			"name": minStr + "k"
	});
	return list;
}